Add note about specifying dependencies.
authorParker Moore <parkrmoore@gmail.com>
Sat, 17 Jan 2015 08:55:58 +0000 (00:55 -0800)
committerParker Moore <parkrmoore@gmail.com>
Sat, 17 Jan 2015 08:55:58 +0000 (00:55 -0800)
src/doc/guide.md

index f44c83684a385d5f28619ed4b7188b0da979f55d..1cc1b37a28e70550dc6efea1323abe06d6851b35 100644 (file)
@@ -96,6 +96,17 @@ Hello, world!</code></pre>
 You'll now notice a new file, `Cargo.lock`. It contains information about our
 dependencies. Since we don't have any yet, it's not very interesting.
 
+## Adding a dependency
+
+It's quite simple to add a dependency. Simply add it to your `Cargo.toml` file:
+
+```toml
+[dependencies]
+time = "0.1.12"
+```
+
+Re-run `cargo build` to download the dependencies and build your source with the new dependencies.
+
 # Working on an existing Cargo project
 
 If you download an existing project that uses Cargo, it's really easy